import Vue from 'vue'
Vue.prototype.$ebs = new Vue()

window.onkeydown = e => {
  if (e.keyCode === 13) {
    Vue.prototype.$ebs.$emit('EnterEvent', null)
  }
  if(e.keyCode === 27) {
    Vue.prototype.$ebs.$emit('EscEvent', null)
  }
}

window.onresize = e => {
  Vue.prototype.$ebs.$emit('WindowResize', null)
}